% rubber: index.style estiloindex.ist
% arara: pdflatex
% arara: biber
% arara: makeglossaries
% arara: pdflatex
% arara: pdflatex
% arara: clean: { files: [thesis.acn,thesis.acr,thesis.alg,thesis.aux,thesis.bbl,thesis.bcf,thesis.blg,thesis.glg,thesis.glo,thesis.gls,thesis.idx,thesis.ilg,thesis.ind,thesis.ist,thesis.log,thesis.out,thesis.run.xml,thesis.toc] }

\documentclass{book}

\PassOptionsToPackage{refsection=chapter}{biblatex}
\usepackage{standalone}
\usepackage{estilo}

\title{Modelling Immune Response to HIV-1}
\author{Ricardo Cruz}

\begin{document}

\pagenumbering{roman}
%\maketitle



% Indice mais pequeno e maior

\pdfbookmark[1]{Brief Contents}{toc (short)}
\shorttoc{Brief Contents}{0}

\cleardoublepage
\pdfbookmark[1]{Contents}{toc (detailed)}
\shorttoc{Contents}{1}



%% ACRONIMOS E GLOSSARIO

\newglossarystyle{mylist}{
	\setglossarystyle{altlistgroup}  % base on this style
	\renewenvironment{theglossary}{
	\begin{multicols}{2}\begin{description}}{\end{description}\end{multicols}} 
}

\printglossary[style=mylist]

\printglossary[style=mylist,type=\acronymtype]



\chapter{Abstract}
\glsresetall
\input{chp0-abstract}
\printbibliography[heading=subbibnumbered]

\pagenumbering{arabic}

\chapter{Background Knowledge}
\glsresetall
\input{chp1-biology}
\printbibliography[heading=subbibnumbered]

\chapter{Agent-Based Models}
\glsresetall
\input{chp2-abm}
\printbibliography[heading=subbibnumbered]

\chapter{Cellular Automata Models}
\glsresetall
\input{chp3-ca}
\printbibliography[heading=subbibnumbered]

\chapter{Differential Equations Models}
\glsresetall
\input{chp4-ode}
\printbibliography[heading=subbibnumbered]

\chapter{Stochastic Simulations Models}
\glsresetall
\input{chp5-ssa}
\printbibliography[heading=subbibnumbered]

\chapter{Models Summary}
\glsresetall
\input{chp6-summary}
\printbibliography[heading=subbibnumbered]






\end{document}
